package day4.teacher;

/**
 * @author oldliu
 * @since 1.0
 */
public class MathTeacher extends Teacher {

    public MathTeacher(String n, int a) {
        super(n, a);
    }
    public MathTeacher(){

    }

    @Override
    public void giveLession() {
        System.out.println("学习了矩阵乘法");
        System.out.println("上完了布置作业");
    }
    public void huayuan(){
        System.out.println(getName()+"在黑板上划了一个圆");
    }

    @Override
    public String toString() {
        return "这是一位数学老师，名字叫"+super.getName()+",今年"+super.getAge()+"岁";
    }
}
